// 尝试使用相对路径的完整路径，假设 types 文件在同一目录下且为 .ts 文件
interface IMenuGroup {
    key: string
    title: string
    iconSvg?: string
    menuKeys: string[]
}
export const toolbarKeys:Array<string|IMenuGroup> = [
    "header1",
    "header2",
    "header3",
    "|",
    'blockquote',
    'bold',
    'underline',
    'italic',
    'through',
    'color',
    'code',
    "|",
    'indent',
    'delIndent',
    'bulletedList',
    'numberedList',
    'justifyLeft',
    'justifyCenter',
    'justifyRight',
    'todo',
    "|",
    'insertLink',
    'uploadImage',
    {
        key: 'group-video',
        title: '视频',
        iconSvg: '<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',
        menuKeys: [
            'insertVideo',
            'uploadVideo',
        ]
    },
    'insertTable',
    'codeBlock',
    'divider',
    '|',
    'clearStyle',
    'redo',
    'undo',
]
export const simpleToolbarKeys:Array<string|IMenuGroup> = [
    "header1",
    "header2",
    "header3",
    "|",
    'bold',
    'underline',
    'italic',
    'code',
    "|",
    'bulletedList',
    'numberedList',
    'todo',
    "|",
    'insertLink',
    'uploadImage'
]